import {isEmpty} from '@/utils/CommonUtils';

export default {
  checkCopyAble(leftField, rightField) {
    if (isEmpty(leftField)) {
      return 'leftField是空的';
    }

    if (isEmpty(rightField)) {
      return 'leftField是空的';
    }

    return this.checkComponent(leftField, rightField);
  },

  checkComponent(leftField, rightField) {
    //在这里可以检查复制字段的组件是否一致
    //如果校验通过, 返回undefined即可,
    //如果不通过, 直接返回message即可
  },
};